<template>
  <section class="account">
    <div class="account-item" v-for="(item, index) in accountInfo" :key="index">
      <div class="number"><span class="balance">{{ item.number }}</span>{{item.unit}}</div>
      <div class="account-info">{{item.info}}</div>
    </div>
  </section>

</template>

<script>
  export default {
    name: "account",
    props: {
      accountInfo: {
        type: Array,
        default() {
          return []
        }
     }
    }
  }
</script>

<style scoped>
  .account {
    display: flex;
  }

  .account-item {
    width: 100%;
    background-color: #fff;
    margin-right: 1px;
    text-align: center;
    font-size: 13px;
    padding: 18px;
  }

  .account-item:last-of-type {
    margin-right: 0;
  }

  .account-item .balance {
    font-size: 24px;
    font-weight: 700;
    color: #d93a49;
  }

  .account-info {
    margin-top: 6px;
  }
</style>
